angular.module("myApp")
.config(["$stateProvider", "$urlRouterProvider", function($stateProvider, $urlRouterProvider){
	$urlRouterProvider.otherwise("home");
	$stateProvider.state("home", {
		url : "/home",
		templateUrl : "views/home/home.html",
		controller: "HomeController"
	}).state("homeChild", {
		url : "/homeChild",
		templateUrl : "views/home/homeChild/homeChild.html",
		controller: "HomeControllerChild"
	}).state("homeChild.home_place", {
		url : "/homeGrandson",
		templateUrl : "views/home/homeChild/homeGrandson/home_place.html",
		controller: "HomeControllerChild"
	}).state("homeChild.home_food", {
		url : "/homeGrandson",
		templateUrl : "views/home/homeChild/homeGrandson/home_food.html",
		controller: "HomeControllerChild"
	}).state("homeChild.home_shop", {
		url : "/homeGrandson",
		templateUrl : "views/home/homeChild/homeGrandson/home_shop.html",
		controller: "HomeControllerChild"
	}).state("homeChild.home_play", {
		url : "/homeGrandson",
		templateUrl : "views/home/homeChild/homeGrandson/home_play.html",
		controller: "HomeControllerChild"
	}).state("homeChild.home_list", {
		url : "/homeGrandson",
		templateUrl : "views/home/homeChild/homeGrandson/home_list.html",
		controller: "HomeControllerChild"
	}).state("destination", {
		// 目的地
		url : "/destination",
		templateUrl : "views/destination/destination.html",
		controller: "DestinationController"
	}).state("shop", {
		url : "/shop",
		templateUrl : "views/shop/shop.html",
		controller: "ShopController"
	}).state("shopChild", {
		url : "/shopChild",
		templateUrl : "views/shop/shopChild/shopChild.html",
		controller: "ShopControllerChild"
	}).state("shopChildren", {
		url : "/shopChildren",
		templateUrl : "views/shop/shopChildren/shopChildren.html",
		controller: "ShopControllerChildren"
	}).state("community", {
		// 社区
		url : "/community",
		templateUrl : "views/community/community.html",
		controller: "CommunityController"
	}).state("mine", {
		url : "/mine",
		templateUrl : "views/mine/mine.html",
		controller: "MineController"
	}).state("search", {
		url : "/search",
		templateUrl : "views/search/search.html",
		controller: "SearchController"
	}).state("search.search_Details",{
		url : "/search_Details",
		templateUrl : "views/search/search_Details/search_Details.html",
		controller: "SearchController"
	}).state("search.search_Details.search_Details_mudi",{
		url : "/search_Details",
		templateUrl : "views/search/search_Details/search_Details.html",
		controller: "SearchController"
	}).state("search.search_Details.search_Details_jinnang",{
		url : "/search_Details_jinnang",
		templateUrl : "views/search/search_Details/search_Details_jinnang/search_Details_jinnang.html",
		controller: "SearchController"
	}).state("search.search_Details.search_Details_wenda",{
		url : "/search_Details_wenda",
		templateUrl : "views/search/search_Details/search_Details_wenda/search_Details_wenda.html",
		controller: "SearchController"
	}).state("search.search_Details.search_Details_tiezi",{
		url : "/search_Details_tiezi",
		templateUrl : "views/search/search_Details/search_Details_tiezi/search_Details_tiezi.html",
		controller: "SearchController"
	}).state("search.search_Details.search_Details_shop",{
		url : "/search_Details_shop",
		templateUrl : "views/search/search_Details/search_Details_shop/search_Details_shop.html",
		controller: "SearchController"
	}).state("search.search_Details.search_Details_admin",{
		url : "/search_Details_admin",
		templateUrl : "views/search/search_Details/search_Details_admin/search_Details_admin.html",
		controller: "SearchController"
	}).state("community.community_get",{
		url:"/community_get",
		templateUrl:"views/community/community/community_get.html"
	}).state("community.community_recommend",{
		url:"/community_recommend",
		templateUrl:"views/community/community/community_recommend.html"
	})
}])